#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMediaPlayer>
#include <QVideoWidget>
#include <QVBoxLayout>
#include <QPushButton>
#include <QStyle>
#include <QFileDialog>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

public slots:
    void chooseVideo();

private:
//    Ui::Widget *ui;
    QMediaPlayer* mediaPlayer;
    QVideoWidget* videoWidget;
    QVBoxLayout* vboxloyout;

    //创建两个按钮，选择、播放
    QPushButton* chooseButton, *playButton;

};
#endif // WIDGET_H
